package GUILayer;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;

public class MainProg {

	protected Shell shell;

	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			MainProg window = new MainProg();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		createContents();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		shell = new Shell();
		shell.setSize(764, 468);
		shell.setText("SWT Application");
		
		Composite composite = new Composite(shell, SWT.NONE);
		composite.setBounds(0, 0, 748, 429);
		
		TabFolder tabFolder = new TabFolder(composite, SWT.NONE);
		tabFolder.setBounds(0, 0, 748, 429);
		
		TabItem tbtmCustomer = new TabItem(tabFolder, SWT.NONE);
		tbtmCustomer.setText("Customer");
		
		TabItem tbtmProduct = new TabItem(tabFolder, SWT.NONE);
		tbtmProduct.setText("Product");
		
		TabItem tbtmOrder = new TabItem(tabFolder, SWT.NONE);
		tbtmOrder.setText("Order");
		
		
		TabItem tbtmSupplier = new TabItem(tabFolder, SWT.NONE);
		tbtmSupplier.setText("Supplier");
		
		TabItem tbtmInvoice = new TabItem(tabFolder, SWT.NONE);
		tbtmInvoice.setText("Invoice");
		

	}
}
